home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Src / gc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  1.2 KB  |  36 lines

  1. /*
  2.  *
  3.  *  g c . h            -- Mark and Sweep Garbage Collector 
  4.  *
  5.  *
  6.  * Copyright ⌐ 1993-1996 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
  7.  * 
  8.  *
  9.  * Permission to use, copy, and/or distribute this software and its
  10.  * documentation for any purpose and without fee is hereby granted, provided
  11.  * that both the above copyright notice and this permission notice appear in
  12.  * all copies and derived works.  Fees for distribution or use of this
  13.  * software or derived works may only be charged with express written
  14.  * permission of the copyright holder.  
  15.  * This software is provided ``as is'' without express or implied warranty.
  16.  *
  17.  * This software is a derivative work of other copyrighted softwares; the
  18.  * copyright notices of these softwares are placed in the file COPYRIGHTS
  19.  *
  20.  *
  21.  *            Author: Erick Gallesio [eg@unice.fr]
  22.  *    Creation date: 17-Feb-1993 12:27
  23.  * Last file update: 10-Feb-1995 19:59
  24.  *
  25.  */
  26.  
  27. #define GC_MARK            01 /* To mark a cell */
  28.  
  29. extern SCM *STk_stack_start_ptr;
  30. extern double STk_total_gc_time;
  31.  
  32. void STk_gc_count_cells(long *allocated, long *used, long *calls);
  33. void STk_mark_stack(SCM *start, SCM *end); 
  34. int  STk_valid_address(SCM p);      /* true if p is a valid address */
  35. void STk_init_gc(void);
  36.